/**
 * 页面示例-路由配置
 * @author LiQingSong
 */
import LayoutIndex from '@/layout/Index';
import AppMainLayout from '@/layout/components/AppMain';

const router = {
    path: '/controlboard',
    component: LayoutIndex,
    redirect: '/controlboard/control',
    name: 'controlboard',
    meta: {
        title: '控制台',
        icon: 'control'
    },
    children: [
        {
            path: 'control',
            component: () => import('@/views/controlboard/control'),
            // redirect: '/controlboard/Control/one',
            name: 'control',
            meta: {
                title: '控制台',
                icon: 'control',
                breadcrumb: [
                    {
                        meta: { title: "控制台" }
                    }
                ]
            }
        },
        {
            path: 'product',
            component: () => import('@/views/controlboard/product'),
            // redirect: '/controlboard/Control/one',
            name: 'product',
            meta: {
                title: '产品中心',
                icon: 'product',
                breadcrumb: [
                    {
                        meta: { title: '产品中心' }
                    },

                ],
            }
        },
        {
            path: 'personal',
            component: AppMainLayout,
            // redirect: '/controlboard/Control/one',
            name: 'personal',
            meta: {
                title: '个人页',
                icon: 'page'
            },
            hidden: true,
            children: [
                {
                    path: 'personalcenter',
                    component: () => import('@/views/personal/personalcenter'),
                    name: 'personalcenter',
                    meta: {
                        title: '个人中心',
                        breadcrumb: [
                            {
                                meta: { title: '个人中心' }
                            },

                        ],
                    },
                    hidden: true
                },
                {
                    path: 'personalset',
                    component: () => import('@/views/personal/personalset'),
                    name: 'personalset',
                    meta: {
                        title: '个人设置',
                        breadcrumb: [
                            {
                                meta: { title: '个人设置' }
                            },

                        ],
                    },
                    hidden: true
                },

            ]
        },

    ]
};

export default router;
